module.exports = {
    lintOnSave: false,
    devServer: {
        port: 8080, // 端口
        overlay: {
            warnings: false,
            errors: true
        },
        disableHostCheck: true
    },
    configureWebpack: config => {
        if (process.env.NODE_ENV === 'production') {
            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
        }
    }
}